import axios from "axios";
export const getData = (options) => {
  return new Promise((resolve) => {
    options.data = options.data || {};

    axios.get('/api' + options.url, {}).then(
      (res) => {
        resolve(res)
      },
      (err) => {
        console.log(err);
      }
    );

  })
}


